package com.xujl.task;

class RxMessage<T> {
    private Task<?> task;
    private T data;
    private Object obj;
    private int objCode;

    public RxMessage (Task<?> task) {
        this.task = task;
    }

    public RxMessage (Task<?> task, T data) {
        this.task = task;
        this.data = data;
    }

    public Task<?> getTask () {
        return task;
    }

    public void setTask (Task<?> task) {
        this.task = task;
    }

    public T getData () {
        return data;
    }

    public void setData (T data) {
        this.data = data;
    }

    public Object getObj () {
        return obj;
    }

    public RxMessage<T> setObj (Object obj) {
        this.obj = obj;
        return this;
    }

    public RxMessage<T> setObjCode (int code) {
        this.objCode = code;
        return this;
    }

    public int getObjCode () {
        return objCode;
    }
}
